import Vue from 'vue'

import 'normalize.css/normalize.css'

import ElementUI, {
  MessageBox,
  Message
} from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import locale from 'element-ui/lib/locale/lang/zh-CN'

import '@/styles/index.scss'
import api from './api/api'

import App from './App'
import store from './store'
import router from './router'
import dayjs from 'dayjs'
import '@/icons'
// 路由守卫文件
import '@/router/permission'

Vue.use(ElementUI, {
  locale
})
Vue.prototype.$ELEMENT = {
  size: 'mini'
}
Vue.config.productionTip = false
Vue.prototype.$api = api
Vue.prototype.$dayjs = dayjs
Vue.prototype.$confirm = MessageBox.confirm;
Vue.prototype.$message = Message;

new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})
